package com.yanqu.road.server.cmd.assistant;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @Description
 * @Author cwq
 * @Data 2021/8/3 10:39
 */
@Cmd(code = GameProtocol.S_ASSISTANT_ACTION_FROM_CROSS, desc = "执行小助理操作 跨服返回区服 协议")
public class AssistantActionFromCrossCmd extends AbstractCommand {


    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
      /*  AssistantProto.AssistantActionCrossToGameServerMsg reqMsg = AssistantProto.AssistantActionCrossToGameServerMsg.parseFrom(packet.getBytes());
        AssistantProto.AssistantActionRespMsg.Builder builder = AssistantMgr.action(player,reqMsg.getAction(),reqMsg);
        player.sendChannelPacket(ClientProtocol.U_ASSISTANT_ACTION, builder);*/
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
